﻿@model IEnumerable<RegioKistl.Models.Delivery>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.CustomerId)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeliveryDate)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.WasHelping)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.TakenBoxesCount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.ReturnedBoxesCount)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PriceForTransaction)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.CustomerId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeliveryDate)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.WasHelping)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TakenBoxesCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ReturnedBoxesCount)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PriceForTransaction)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.Id }) |
            @Html.ActionLink("Details", "Details", new { id=item.Id })
        </td>
    </tr>
}

</table>
